{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
	<li class="active"><a href="#tab_basic">APP支付设置</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" id="setting-form" class="form-horizontal form">
			<div class="panel panel-default">
				<div class="panel-heading">基础设置</div>
				<div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">微信登录</label>
                        <div class="col-sm-9">
                            <label class="radio-inline">
                                <input type="radio" class="form-control" name="set[wechat_login]" value="0" {if $settings['wechat_login'] == 0}checked="checked"{/if}> 关闭
                            </label>
                            <label class="radio-inline">
                                <input type="radio" class="form-control" name="set[wechat_login]" value="1" {if $settings['wechat_login'] == 1}checked="checked"{/if}> 启用
                            </label>
                            <span class="help-block">默认不开启微信登录，开启后用户可通过微信进行登录</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">微信支付</label>
                        <div class="col-sm-9">
                            <label class="radio-inline">
                                <input type="radio" class="form-control" name="set[payset]" value="0" {if $settings['payset'] == 0}checked="checked"{/if}> 关闭
                            </label>
                            <label class="radio-inline">
                                <input type="radio" class="form-control" name="set[payset]" value="1" {if $settings['payset'] == 1}checked="checked"{/if}> 启用
                            </label>
                            <span class="help-block">默认不开启微信支付，开启后用户可使用微信支付功能</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">LinkedME Key</label>
                        <div class="col-sm-9">
                            <input type="text" name="set[lkey]" class="form-control" value="{$settings['lkey']}">
                            <span class="help-block">内容在<a href="https://www.linkedme.cc/" target="_blank">LinkedME</a>网站中获取。填写信息开启app跳转下载功能,否则不开启</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">支付回调地址</label>
                        <div class="col-sm-9">
                            <p class='form-control-static'><a href='javascript:;' class="js-clip" title='点击复制链接' data-url="{$_W['siteroot']}addons/{MODULE_NAME}/payment/wechat/notify.php" >{$_W['siteroot']}addons/{MODULE_NAME}/payment/wechat/notify.php</a></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">支付回调页面</label>
                        <div class="col-sm-9">
                            <p class='form-control-static'><a href='javascript:;' class="js-clip" title='点击复制链接' data-url="{$_W['siteroot']}addons/{MODULE_NAME}/payment/wechat/return.php" >{$_W['siteroot']}addons/{MODULE_NAME}/payment/wechat/return.php</a></p>
                        </div>
                    </div>
					<div class="form-group">
						<label class="col-sm-2 control-label"></label>
						<div class="col-sm-9">
							<input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
							<input type="hidden" name="token" value="{$_W['token']}" />
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
{php include wl_template('common/footer');}